package cn.edu.buaa.cnsatm.traffic_big_data_server.waterway.controller;

import cn.edu.buaa.cnsatm.traffic_big_data_server.waterway.service.TyphoonService;
import org.springframework.web.bind.annotation.*;

import java.sql.SQLException;

@RestController
public class TyphoonController {
    /**
     * @author tianwang
     * @description 用于大屏显示台风预报与禁航的消息，数据来自于拼凑的假数据
     * @date 2019-10-19
     */
    @RequestMapping("/typhoonForecastAndProhibitNavigation")
    public String typhoonForecastAndProhibitNavigation(@RequestParam(value = "top_num",required = true,defaultValue = "8")int top_num) throws SQLException {
        return TyphoonService.typhoonForecastAndProhibitNavigation(top_num);
    }
}
